import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpWxliveGoods {
  id!: number;
  goodsId?: number;
  auditId?: number;
  uniacid?: number;
  time?: string;
}

export const ImsYzdKpWxliveGoodsSchema = new EntitySchema({
  class: ImsYzdKpWxliveGoods,
  properties: {
    id: { primary: true, type: 'number' },
    goodsId: { type: 'number', fieldName: 'goodsId', nullable: true },
    auditId: { type: 'number', fieldName: 'auditId', nullable: true },
    uniacid: { type: 'number', nullable: true },
    time: { type: 'string', length: 255, nullable: true },
  },
});
